project(SessionObj LANGUAGES CXX)

file(GLOB_RECURSE SRCS "*.cpp")

foreach(cppfile IN LISTS SRCS)
	message(STATUS "add ${cppfile} to project ${PROJECT_NAME}...")
endforeach()

# message(STATUS "Global include directory: ${CMAKE_CURRENT_SOURCE_DIR}/../global")

add_library(${PROJECT_NAME} OBJECT ${SRCS})

#file(GLOB_RECURSE hfile "${CMAKE_CURRENT_SOURCE_DIR}/../const/*.h")
#message(STATUS "Global include directory: ${hfile}")

target_include_directories(${PROJECT_NAME} PUBLIC
	"./"
	"${CMAKE_CURRENT_SOURCE_DIR}/../const"
	${Boost_INCLUDE_DIRS}
	${async_server_SOURCE_DIR}
	${MsgHandlerObj_SOURCE_DIR}
)

target_link_libraries(${PROJECT_NAME} PUBLIC
	MsgHandlerObj
)
